//
//  CLRouter.h
//  CLBrowser
//
//  Created by 梁慧聪 on 2021/7/9.
//

#import <Foundation/Foundation.h>
#import "CLViewController.h"
#import "CLTabBarController.h"

NS_ASSUME_NONNULL_BEGIN

@interface CLRouter : NSObject
@property (nonatomic,weak) UIViewController * currentVc;
@property (nonatomic,strong) CLTabBarController * currentTabbarVc;
/// Retrieves the shared router instance.
///
/// Returns the shared router instance.
+ (instancetype)sharedInstance;

/// Retrieves the view corresponding to the given view model.
///
/// viewModel - The view model
///
/// Returns the view corresponding to the given view model.
- (CLViewController *)viewControllerForViewModel:(CLViewModel *)viewModel;
@end

NS_ASSUME_NONNULL_END
